package My;

public class Test {

    public static void main(String[] args) {
        MinStack minStack=new MinStack();
        minStack.push(1);
        minStack.push(0);
        minStack.push(-1);
        System.out.println(minStack.getmin());
        minStack.pop();
        System.out.println(minStack.getmin());
        System.out.println(minStack.top());
    }
}
